package com.wei.violet.utils

object TestDemo {

  def main(args: Array[String]): Unit = {

    val codes="大家好|我是渣渣辉|是兄弟|就|来|砍我|装备不要一分钱|开局一把刀轻松上王者|GG"
      val strings: Array[String] = codes.split("\\|").filter(x=>(x.length>=3&&x.length<=8))
    val keywordsLabel=
      strings.map(x=>("K"+x))
     keywordsLabel.foreach(x=>println(x))
  }


}
